<template>
  <ul>
    <li v-for="( context, key ) in contexts" :key="key.id" @click="click(key)">
      {{ context }}--{{ key }}
    </li>
  </ul>
</template>

<script>
export default {
  data() {
    return {
      contexts: [
        {
          id: 1,
          value: "fs",
        },
        { id: 2, value: "dgd" },
      ],
    };
  },
  methods: {
    click(arg,arg2) {
      console.log(arg);
      console.log(arg2);
    //   console.log(this);
    },
  },
};
</script>

<style lang="scss" scoped>
</style>